<template>
  <div class="explain-box">
    <div class="explain-title-box">
      <div class="explain-icon small-icon"></div>
      <div class="explain-icon middle-icon"></div>
      <div class="explain-icon big-icon"></div>
      <div class="explain-title">名词解释</div>
      <div class="explain-icon big-icon"></div>
      <div class="explain-icon middle-icon"></div>
      <div class="explain-icon small-icon"></div>
    </div>
    <div class="part-box">
      <p>
        <span class="part-num">1.</span>
        <span class="general">【图形数据源】</span>
        <span
          >：通过托拉拽方式，配置表关系，生成数据源。使用场景：用于单表或多表简单联查的情况使用。</span
        >
      </p>

      <p>
        <span class="part-num">2.</span>
        <span class="general">【JS数据源】</span>
        <span>：通过编写前端JS代码生成的数据源。使用场景：用于自定义业务场景的情况使用。</span>
      </p>
      <p>
        <span class="part-num">3.</span>
        <span class="general">【SQL数据源】</span>
        <span>：通过编写SQL生成的数据源。使用场景：用于多表复杂联查的情况使用。</span>
      </p>
      <p>
        <span class="part-num">4.</span>
        <span class="general">【数据接口服务】</span>
        <span
          >：通过编写后台业务接口生成的数据源。使用场景：用于处理复杂业务逻辑，兼容移动端的情况使用。</span
        >
      </p>
    </div>
  </div>
</template>

<script>
  import { defineComponent, reactive, toRefs, onMounted } from 'vue';
  export default defineComponent({
    name: 'SourceExplain',
    setup() {
      const state = reactive({});
      onMounted(() => {});
      return {
        ...toRefs(state),
      };
    },
  });
</script>
<style scoped lang="less">
  .explain-box {
    width: 100%;
    .explain-title-box {
      width: 100%;
      height: 60px;
      display: flex;
      justify-content: center;
      align-items: center;
      .explain-icon {
        background: #3f3f3f;
        border-radius: 50%;
      }
      .small-icon {
        width: 4px;
        height: 4px;
        opacity: 0.2;
      }
      .middle-icon {
        width: 7px;
        height: 7px;
        opacity: 0.6;
        margin: 0 4px;
      }
      .big-icon {
        width: 10px;
        height: 10px;
      }
      .explain-title {
        font-size: 18px;
        font-weight: bold;
        color: #3f3f3f;
        padding: 0 10px;
      }
    }
    .part-box {
      width: 100%;
      padding: 20px;
      font-size: 16px;
      color: #3f3f3f;
      line-height: 30px;
      background-color: #fff;
      border-radius: 4px;
      .part-num {
        width: 13px;
        display: inline-block;
        text-align: right;
      }
      .general {
        color: #3265f5;
        font-weight: bold;
      }
    }
  }
  .explain-box p {
    margin-bottom: 0;
  }
</style>
